package KI;

/**
 * A single element in a List
 *
 */
public class Node {
	
	/**
	 * Position x
	 */
	int x;
	
	/**
	 * Position y
	 */
	int y;
	
	/**
	 * Node before this one
	 */
	Node pre;
	
	/**
	 * Costs till this node
	 */
	int cost;
	
	/**
	 * Standard constructor
	 * @param x
	 * @param y
	 * @param pre
	 * @param cost
	 */
	public Node(int x, int y, Node pre, int cost) {
		super();
		this.x = x;
		this.y = y;
		this.pre = pre;
		this.cost = cost;
	}
	
}
